package com.caiyouxi.system.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.system.model.SysSettingsBean;
import com.caiyouxi.system.service.SysSettingsBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sys_settings")
public class SysSettingsBeanController {
    @Autowired
    private SysSettingsBeanService service;

    @RequestMapping("delete_sys")
    public ResData delete_sys(@RequestBody SysSettingsBean bean){
        return service.delete_sys(bean);
    }

    @RequestMapping("insert_sys_settings")
    public ResData insert_sys_settings(@RequestBody SysSettingsBean bean){
        return service.insert_sys_settings(bean);
    }

    @RequestMapping("select_settings")
    public ResData select_settings(@RequestBody SysSettingsBean bean){
        return service.select_settings(bean);
    }

   @RequestMapping("update_settings")
    public ResData update_settings(@RequestBody SysSettingsBean bean){
        return service.update_setting(bean);
    }

    @RequestMapping("get_syssettingsBean_list")
    public ResData get_syssettingsBean_list(@RequestBody SysSettingsBean bean){
        return service.get_syssettingsBean_list(bean);
    }
}
